<html>
<head>
<title>Simple Login Page</title> 
<script type="text/javascript" language="javascript" src="login/login.nocache.js"></script>
</head>
<body onload='document.f.j_username.focus();'>
	
	<!-- ############ GWT HISTORY HANDLER ############ -->
	<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position: absolute; width: 0; height: 0; border: 0"></iframe>
	
	<!-- ############ INFO MESSAGE ############ -->
	<span id="message" class="message"></span>
	
	<!-- ############ LOGIN FORM ############ -->
	<div id="loginDiv" class="loginDiv">
		<h3>Login Part</h3>
		<form name='f' action='/j_spring_security_check' method='POST'>
			<table>
				<tr>
					<td>User:</td>
					<td><input type='text' name='j_username' value=''></td>
				</tr>
				<tr>
					<td>Password:</td>
					<td><input type='password' name='j_password' /></td>
				</tr>
				<tr>
					<td colspan='2'><input type="checkbox" name="_spring_security_remember_me">Remember Me</td>
  				</tr>
				<tr>
					<td colspan='2'><input name="submit" type="submit" /></td>
				</tr>
				<tr>
					<td colspan='2'><a id="registerLink" class="registerLink">Register</a></td>
				</tr>
			</table>
		</form>
	</div>
	
	<!-- ############ REGISTER FORM ############ -->
	<div id="registerDiv" class="registerDiv" style="visibility:hidden">
		<h3>Register Part</h3>
		<table>
			<tr>
				<td>Username :</td>
				<td><input type='text' name='username' id='username' value=''></td>
			</tr>
			<tr>
				<td>Password :</td>
				<td><input type='password' name='password_1' id='password_1' /></td>
			</tr>
			<tr>
				<td>Password (confirm):</td>
				<td><input type='password' name='password_2' id='password_2' /></td>
			</tr>
			<tr>
				<td>Email:</td>
				<td><input type='text' name='mail' id='mail' /></td>
			</tr>
			<tr>
				<td colspan='2'>
				<button id="registerButton" class="registerButton">Register</button>
				</td>
			</tr>
		</table>
	</div>
	
</body>
</html>